﻿<UserControl x:Class="CrazyWorship1.Viewer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:c="clr-namespace:CrazyWorship1">
    <UserControl.Resources>
        <Style x:Key="baseStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="Trebuchet" />
            <Setter Property="FontSize" Value="0.1" />
            <Setter Property="FontWeight" Value="Bold" />
        </Style>
        <Style x:Key="otherStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="Times New Roman" />
            <Setter Property="FontSize" Value="0.1" />
           
        </Style>
        <Style x:Key="whiteStyle" TargetType="{x:Type TextBlock}">
            <Setter Property="FontFamily" Value="Trebuchet" />
            <Setter Property="FontSize" Value="0.1" />
            <Setter Property="Foreground" Value="White" />
        </Style>

        <MeshGeometry3D x:Key="xmlData" 
                Positions="-1 -1 0  1 -1 0  -1 1 0  1 1 0"
                Normals="0 0 1  0 0 1  0 0 1  0 0 1"
                TextureCoordinates="0 1  1 1  0 0  1 0   "
                TriangleIndices="0 1 2  1 3 2" />

        <!--<Storyboard x:Key="fadeIn" Name="fadeIn">
            <DoubleAnimation To="1" Duration="0:0:5">
            </DoubleAnimation>
        </Storyboard>-->
        <Storyboard x:Key="zoomIn" Name="zoomIn">
            <DoubleAnimation From="3" To="0" Duration="0:0:5">
            </DoubleAnimation>
        </Storyboard>
        <Storyboard x:Key="zoomOut" Name="zoomOut">
            <DoubleAnimation From="0" To="3" Duration="0:0:5">
            </DoubleAnimation>
        </Storyboard>
        <Storyboard x:Key="fadeOut" Name="fadeOut">
            <DoubleAnimation To="0" Duration="0:0:5">
            </DoubleAnimation>
        </Storyboard>


        <Storyboard x:Key="rotateIn" Name="rotateIn">
            <DoubleAnimation From="0" To="90" Duration="0:0:1">

            </DoubleAnimation>
        </Storyboard>
    </UserControl.Resources>
    <Grid ClipToBounds="False" Name="MainGrid" ShowGridLines="True">
       

            <Viewport3D Grid.Row="0" Name="Viewport3D">
            <Viewport3D.Camera>
                <PerspectiveCamera x:Name="cam" Position="0,0,2.5" LookDirection="0,0,-8" 
                           UpDirection="0,1,0" FieldOfView="45" 
                            />
            </Viewport3D.Camera>

          <!--  <ModelVisual3D>
                <ModelVisual3D.Content>
                    <Model3DGroup x:Name="group3D">
                        <AmbientLight Color="#333333" />
                        <GeometryModel3D>
                            <GeometryModel3D.Geometry>
                                <MeshGeometry3D
                           Positions="-1 -1 0  1 -1 0  -1 1 0  1 1 0"
              Normals="0 0 1  0 0 1  0 0 1  0 0 1"
              TextureCoordinates="0 1  1 1  0 0  1 0   "
              TriangleIndices="0 1 2  1 3 2" />

                            </GeometryModel3D.Geometry>

                            <GeometryModel3D.Material>
                                <DiffuseMaterial>
                                    <DiffuseMaterial.Brush>
                                        <VisualBrush>
                                            <VisualBrush.Visual>
                                                <TextBlock Name="textBlock">test</TextBlock></VisualBrush.Visual>
                                        </VisualBrush>
                                    </DiffuseMaterial.Brush>
                                </DiffuseMaterial>
                                    
                               
                            </GeometryModel3D.Material>
                           
                                  <GeometryModel3D.BackMaterial>
                                <DiffuseMaterial Brush="LightBlue"/>
                            </GeometryModel3D.BackMaterial>--><!--
                        </GeometryModel3D>
                        <Model3DGroup.Transform>
                            <Transform3DGroup>
                                
                            </Transform3DGroup>
                            
                        </Model3DGroup.Transform>
                    </Model3DGroup>
                </ModelVisual3D.Content>
            </ModelVisual3D>
-->
        </Viewport3D>
    </Grid>
    
</UserControl>
